import { createRouter, createWebHashHistory } from "vue-router";
import type { RouteRecordNormalized, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "root",
    component: () => import(`../views/CreateReceipt.vue`),
  },
  {
    path: "/createReceipt",
    name: "createReceipt",
    component: () => import(`../views/CreateReceipt.vue`),
  },
  {
    path: "/:pathMatch(.*)",
    component: () => import("../views/404.vue"),
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
export default router;
